package com.hspedu.exception_;

/**
 * @Author Stringzhua
 * @Date 2024/3/7 21:41
 * description:
 */
public class ArithmeticException {
    public static void main(String[] args) {
        int num1 = 10;
        int num2 = 0;
        int res = num1 / num2;//ArithmeticException数学运算异常
        //Exception in thread "main" java.lang.ArithmeticException: / by zero
        System.out.println("程序继续运行");
    }
}
